package tables

import (
	"time"
)

type YogaOrder struct {
	Id                 int       `xorm:"not null pk autoincr INT(10)" json:"id" form:"id" mapstructure:"id"`
	FromId             int       `xorm:"" json:"from_id" form:"from_id" mapstructure:"from_id"`
	UserId             int       `xorm:"" json:"user_id" form:"user_id" mapstructure:"user_id"`
	TotalAmount        float32   `xorm:"" json:"total_amount" form:"total_amount" mapstructure:"total_amount"`
	OrderNo            string    `xorm:"" json:"order_no" form:"order_no" mapstructure:"order_no"`
	SubMchId           string    `xorm:"" json:"sub_mch_id" form:"sub_mch_id" mapstructure:"sub_mch_id"`
	IpAddr             string    `xorm:"" json:"ip_addr" form:"ip_addr" mapstructure:"ip_addr"`
	TransactionId      string    `xorm:"" json:"transaction_id" form:"transaction_id" mapstructure:"transaction_id"`
	Body               string    `xorm:"" json:"body" form:"body" mapstructure:"body"`
	CreatedAt          time.Time `xorm:"created" json:"created_at" form:"created_at" mapstructure:"created_at"`
	UpdatedAt          time.Time `xorm:"updated" json:"updated_at" form:"updated_at" mapstructure:"updated_at"`
	DeletedAt          time.Time `xorm:"deleted" json:"deleted_at" form:"deleted_at" mapstructure:"deleted_at"`
	Acid               int       `xorm:"" json:"acid" form:"acid" mapstructure:"acid"`
	Openid             string    `xorm:"" json:"openid" form:"openid" mapstructure:"openid"`
	State              int       `xorm:"" json:"state" form:"state" mapstructure:"state"`
	SeparateState      int       `xorm:"" json:"separate_state" form:"separate_state" mapstructure:"separate_state"`
	PayTime            int64     `xorm:"" json:"pay_time" form:"pay_time" mapstructure:"pay_time"`
	AppointmentRemarks string    `xorm:"" json:"appointment_remarks" form:"appointment_remarks" mapstructure:"appointment_remarks"`
	OrderType          int       `xorm:"" json:"order_type" form:"order_type" mapstructure:"order_type"`
	AppointmentsNumber int       `xorm:"" json:"appointments_number" form:"appointments_number" mapstructure:"appointments_number"`
	ClassId            int       `xorm:"" json:"class_id" form:"class_id" mapstructure:"class_id"`
	BuyTime            string    `xorm:"" json:"buy_time" form:"buy_time" mapstructure:"buy_time"`
	ClassName          string    `xorm:"" json:"class_name" form:"class_name" mapstructure:"class_name"`
}
